﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Utilities
{
    public class ObjectTypeHelper
    {
        /// <summary>
        /// 判断是否为数字类型
        /// </summary>
        /// <param name="Obj"></param>
        /// <returns></returns>
        public static bool IsNumbers(object Obj)
        {
            try
            {
                Convert.ToInt32(Obj);
                Convert.ToInt64(Obj);
                return true;
            }
            catch
            {
                return false;
            }
        }
    }
}
